package br.ufc.great.dtx.tm.deadlockdetector;

import java.io.Serializable;

import br.ufc.great.Graph;

public class WFGMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4487627064174119802L;
	private Graph graph;
	private int type;
	
	public static final int REQUEST = 1;
	public static final int RESPONSE = 2;
	
	public WFGMessage() {
		graph = null;
		type = REQUEST;
	}

	public Graph getGraph() {
		return graph;
	}

	public void setGraph(Graph graph) {
		this.graph = graph;
		type = RESPONSE;
	}
	
	public int getType() {
		return type;
	}
		
}
